home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / util / edit / jed207.lha / src / jed.lha / dmakefile < prev    next >
Makefile  |  1993-01-16  |  2KB  |  70 lines

  1. #
  2. # dmakefile for jed 2.x and utilities
  3. #
  4. # 1> dmake [jed]    ; compile the jed executable
  5. # 1> dmake makerefs    ; compile makerefs
  6. # 1> dmake pubman    ; compile pubman
  7. # 1> dmake all        ; compile jed, makerefs & pubman
  8. # 1> dmake clean    ; delete machine generated files (not executables)
  9. # 1> dmake refs        ; make references for source files
  10. #
  11. # the directory dtmp:jed is used for storing most machine-generated files
  12. #
  13.  
  14. EXEC = ram:jed
  15. OD   = dtmp:jed/
  16. SRCS = command.c commandline.c edit.c editcommands.c find.c housekeeping.c \
  17.        initsymbols.c io.c keys.c main.c menus.c minrexx.c misc.c movement.c \
  18.        prefs.c refs.c render.c scriptcmds.c windows.c sprintf.a stksize.a \
  19.        varargs.a
  20. HDRS = jed.h command.h
  21. OBJS = $(SRCS:"*.?":"$(OD)%1.o")
  22. PROT = $(OD)jed_protos.h
  23. PREC = $(OD)jed.m
  24. REV  = revision
  25. REVOBJS = $(OD)prefs.o $(OD)windows.o
  26.  
  27. #CFLAGS = -r -mRR -I$(OD) -H$(PREC)=jed.h
  28. #CFLAGS = -mRR -s -I$(OD) -H$(PREC)=jed.h -D DEBUG
  29. CFLAGS = -r -mRR -s -I$(OD) -H$(PREC)=jed.h
  30.  
  31. jed : $(PROT) $(PREC) $(EXEC)
  32.  
  33. $(EXEC) : $(OBJS)
  34.     -bumprev 2 jed_rev
  35.     dcc $(REV).c -o $(OD)$(REV).o -c $(CFLAGS)
  36.     cd $(OD)
  37.     dcc $(REV).o $(OBJS:"$(OD)*.o":"%1.o") hash.o -lregexp -o $(EXEC) $(CFLAGS)
  38.     cd
  39.  
  40. $(OBJS) : $(SRCS)
  41.     dcc %(right) -o %(left) -c $(CFLAGS)
  42.  
  43. $(OBJS) :: $(HDRS)
  44.  
  45. $(REVOBJS) : $(REV).h
  46.  
  47. $(PROT) : $(SRCS)
  48.     makeproto -o $(PROT) $(SRCS)
  49.  
  50. $(PREC) : $(HDRS)
  51.     -delete $(PREC)
  52.  
  53. makerefs :
  54.     dcc makerefs.c -o ram:makerefs -pr
  55.  
  56. # The version of DICE I used (2.06.40) has some problems with this. The
  57. # c*.lib function LockAddr() has an absolute reference to SysBase, therefore
  58. # screwing the residentability. To get round this simply put the files cs.lib
  59. # and csr.lib through the libtos utility.
  60. pubman :
  61.     dcc pubman.c -o ram:pubman -pr -mRR
  62.  
  63. refs :
  64.     makerefs -new .jrefs #?.[ach]
  65.  
  66. all : jed makerefs pubman
  67.  
  68. clean :
  69.     -delete $(OD)#?
  70.